import 'package:app/pages/plugin_page.dart';
import 'package:business_boost/routes/boost_pages.dart';
import 'package:business_getx/business_getx.dart';
import 'package:business_platform/business_platform.dart';
import 'package:business_render/business_render.dart';
import 'package:business_user/routes/user_pages.dart';
import 'package:flutter/cupertino.dart';
import 'package:lib_core/lib_core.dart';
import 'package:lib_core/routes/common_pages.dart';
import 'package:lib_ui/routes/ui_pages.dart';
import '../pages/main_page.dart';
import 'app_routes.dart';

class AppPages {
  AppPages._();

  static final Map<String, FlutterBoostRouteFactory> routers = {
    AppRoutes.main: ((setting, uniqueId) => CupertinoPageRoute(settings: setting, builder: (_) {
      return MainPage();
    })),
    AppRoutes.plugin: ((setting, uniqueId) => CupertinoPageRoute(settings: setting, builder: (_) {
      return PluginPage();
    })),
    ...CommonPages.commonPages,
    ...UserPages.userPages,
    ...GetPages.getPages,
    ...BoostPages.boostPages,
    ...UiPages.uiPages,
    ...RenderPages.renderPages,
    ...PlatformPages.routes,
  };
}
